fix tidy readability-container-size-empty
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 20 Nov 2022 15:36:53 +0000 (08:36 -0700)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 20 Nov 2022 15:36:53 +0000 (08:36 -0700)
automatic fix.

garmin_txt.cc

index de62974eb205f6b16dacac4662314cf0c7567692..691792771a95acdfdaa71a9c4b0f5cefde98f180 100644 (file)
@@ -1039,7 +1039,7 @@ bind_fields(const header_type ht)
 static void
 parse_grid(const QStringList& lineparts)
 {
-  if (lineparts.size() < 1) {
+  if (lineparts.empty()) {
     fatal(MYNAME ": Missing grid headline!\n");
   }
 
@@ -1059,7 +1059,7 @@ parse_grid(const QStringList& lineparts)
 static void
 parse_datum(const QStringList& lineparts)
 {
-  if (lineparts.size() < 1) {
+  if (lineparts.empty()) {
     fatal(MYNAME ": Missing GPS datum headline!\n");
   }
 
@@ -1355,7 +1355,7 @@ garmin_txt_read()
 
     QStringList lineparts = csv_linesplit(buff, "\t", "", 0);
 
-    if (lineparts.size() < 1) {
+    if (lineparts.empty()) {
       continue;
     }
     auto linetype = lineparts.at(0);